﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Web.UI.HtmlControls;

namespace RN.ERP.Web
{
    public partial class LCLogin : BaseLoginPage
    {
        public string PageTitle
        {
            get
            {
                return ConfigurationManager.AppSettings["sysTitle"];
            }
        }

        public string AppStyle
        {
            get
            {
                return ConfigurationManager.AppSettings["AppStyle"];
            }
        }
        public string SystemID
        {
            get
            {
                return ConfigurationManager.AppSettings["AppId"];
            }
        }
        private string _backUrl
        {
            get
            {
                return ViewState[ViewStateConstant.VIEWSTATE_BACK_URL] == null ? string.Empty : ViewState[ViewStateConstant.VIEWSTATE_BACK_URL].ToString();
            }
            set
            {
                ViewState[ViewStateConstant.VIEWSTATE_BACK_URL] = value;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)

                myStyleSheet.Attributes.Add("href", AppStyle + "css/style_login.css");

            if (Request.QueryString[RequestConstant.REQUEST_BACK_URL] != null)
            {
                _backUrl = Request.QueryString[RequestConstant.REQUEST_BACK_URL];
            }
        }
    }

}